// JavaScript Document
$(function(){
   $(".imgdel").click(function(){
		$(this).parent("span").parent("li").fadeOut("slow");
	}),
   $("#subhide textarea").focus(function(){
		$("#subhide").slideToggle();
		$("#subcomment").slideToggle(50);
	}),
   $("#subcomment").mouseover(function(){
		var tarea = $("#subcomment textarea");
		tarea.focus();
	})
   $("#shcomment").click(function(){
		if($("#shcomment").text()=="收起评论"){
			$(".comment li").slideUp();
			$("#shcomment").text("展开评论");
			$("#subhide,.dot").slideDown(0);
			$("#subcomment").hide();
		}
		else{
			$("#subcomment").show();
			$("#subhide,.dot").hide(0);
			$(".comment li").slideToggle();
			$("#shcomment").text("收起评论");
			
		}
	})
})
var pscomment = function(ps){
	$("#subhide").slideUp();
	$("#subcomment").slideDown(50);
	var tarea = $("#subcomment textarea");
	tarea.text("回复"+ps+":");
	tarea.focus();
}